<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 26826
  Date: 2022/5/16
  Time: 10:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-plus-square-o"></span>添加身份证</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="${pageContext.request.contextPath}/addIdcard.action">
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请输入身份证</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="idcard_num" maxlength="18"/>
                    <div class="tips"></div>
                </div>
            </div>
            <font color="red">${warning}</font>
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请选择雇员</label>
                </div>
                <div class="field">
                    <select id="factor" name="factor" style=" background-color: whitesmoke; padding:10px 15px; border:1px solid #ddd; border-radius:5px ">
                        <option value="请选择">请选择</option>
                        <c:forEach items="${noIdcard}" var="emp">
                            <option value="${emp.employee_id}">${emp.employee_name}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请选择开始日期</label>
                </div>
                <div class="field">
                    <input type="date" class="input w50" name="idcard_starttime"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label" style="width: 100px">
                    <label>请选择结束日期</label>
                </div>
                <div class="field">
                    <input type="date" class="input w50" name="idcard_endtime"/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit">添加</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body></html>